#include "baijiViewer.h"

using namespace std;
using namespace MeshUtils;


int main(int argc, char* argv[])
{
	if(argc != 2)
	{
		cout << "usage : " << argv[0] << " mesh.tet" << endl;
		exit(0);
	}
	Baiji bai(1024,768);
	bai.buildScene();

	TetgenParser parser(argv[1]);
	Mesh testMesh = parser.load();


	bai.addMesh(testMesh, "testMesh");
	bai.createEntity("test", "testMesh", "dummyMat");
	bai.linkEntityToRoot("test");
	bai.start();
}